一个 stdio 服务,把公众号搜一搜、视频号、文章阅读数、历史发文和文章库交给 Agent。同一份 JSON 用于 Cursor、Claude 和 VS Code。
uvx --from "git+https://github.com/xtree-io/xtree-mcp.git" xtree-mcp
{
"mcpServers": {
"xtree": {
"command": "uvx",
"args": ["--from", "git+https://github.com/xtree-io/xtree-mcp.git", "xtree-mcp"],
"env": {
"XTREE_API_KEY": "xt_live_..."
}
}
}
}account_balance 账户余额. 免费。返回钱包余额,不扣费。 API 参考wechat_search_articles 搜一搜文章. 按关键词搜索公众号文章。 API 参考wechat_search_videos 搜一搜视频. 按关键词搜索视频号视频。 API 参考wechat_search_accounts 搜一搜公众号. 按关键词搜索公众号。 API 参考wechat_channels_search 搜索视频号. 按关键词查找视频号账号。 API 参考wechat_channels_feeds 视频号作品. 用搜索得到的 channel_id 拉取作品列表。 API 参考wechat_channels_feeds_convert_id 视频号 ID 互转. export_id 与 object_id 互转,至少提供一个。 API 参考wechat_articles_metrics 文章阅读与点赞. 传入文章链接,返回阅读、点赞和在看。 API 参考wechat_articles_metrics_pro 文章互动 Pro. 在阅读和点赞之外,返回分享、收藏和评论数。 API 参考wechat_accounts_posts 公众号历史发文. 拉取历史文章。account_id 传 gh_id。 API 参考wechat_accounts_search_by_owner_live 按主体搜公众号. 用主体名称实时查找名下公众号。 API 参考wechat_library_search_articles 文章库检索. 在已收录文章库里按关键词查找。 API 参考wechat_library_search_articles_tokenized 文章库分词检索. 对文章库做分词关键词检索。 API 参考wechat_library_search_accounts 公众号库检索. 在已收录公众号库里按关键词查找。 API 参考wechat_library_accounts_metrics 公众号库指标. 按公众号名称返回库内预估粉丝和指数。 API 参考一个本地的 Model Context Protocol 服务。Agent 调用 xtree-mcp,服务再用你的 API Key 请求 XTREE API。
任何能跑 stdio MCP 的客户端,包括 Cursor、Claude Desktop 和 VS Code。JSON 相同,只是配置文件位置不同。本机需要安装 uv,uvx 才能启动服务。
搜一搜的文章、视频和公众号;视频号搜索、作品和 ID 互转;文章阅读、点赞和扩展互动;公众号历史发文和按主体搜号;以及文章库里的关键词检索和账号指标。本页工具表就是全部。
成功的工具调用按该 API 在目录里的单价从钱包扣费。account_balance 免费。残缺交付不计费。响应里有 _meta.cost_cny 和 _meta.balance_cny。
这一页是服务安装和工具清单。技能是现成的提示词包,调用同一批 API。REST 和 Python SDK 覆盖所有已上线平台,包括还没有注册到这个 MCP 上的平台。
需要。公开命令是 uvx --from git+https://github.com/xtree-io/xtree-mcp.git xtree-mcp。把 Key 放进 XTREE_API_KEY。